package com.jflyfox.modules.admin.tuan;

import com.jflyfox.jfinal.base.BaseModel;
import com.jflyfox.jfinal.component.annotation.ModelBind;

@ModelBind(table = "tb_tuan")
public class TbTuan extends BaseModel<TbTuan> {

	private static final long serialVersionUID = 1L;
	public static final TbTuan dao = new TbTuan();

    //columns START
    private String ID = "id";  // 团id
    private String TITLE = "title";  // 团购名称
    private String SPONSOR = "sponsor";  // 主办方
    private String SPONSOR_PHONE = "sponsor_phone";  // 主办方电话
    private String MAX_PERSONS = "max_persons";  // 最大召集人数
    private String PER_PERSONS = "per_persons";  // 每批次人数
    private String SUMMARY_IMG = "summary_img";  // 简介图片
    private String CONTENT = "content";  // 活动内容
    private String START_TIME = "start_time";  // 开始时间
    private String END_TIME = "end_time";  // 结束时间
    private String STATUS = "status";  // 团状态
    private String CREATE_TIME = "create_time";  // 创建时间
    private String CREATE_ID = "create_id";  // 创建者
    
    public TbTuan setId(Integer value) {
        set(ID, value);
        return this;
    }

	public Integer getId() {
		return get(ID);
	}
    public TbTuan setTitle(String value) {
        set(TITLE, value);
        return this;
    }

	public String getTitle() {
		return get(TITLE);
	}
    public TbTuan setSponsor(String value) {
        set(SPONSOR, value);
        return this;
    }

	public String getSponsor() {
		return get(SPONSOR);
	}
    public TbTuan setSponsorPhone(String value) {
        set(SPONSOR_PHONE, value);
        return this;
    }

	public String getSponsorPhone() {
		return get(SPONSOR_PHONE);
	}
    public TbTuan setMaxPersons(Integer value) {
        set(MAX_PERSONS, value);
        return this;
    }

	public Integer getMaxPersons() {
		return get(MAX_PERSONS);
	}
    public TbTuan setPerPersons(Integer value) {
        set(PER_PERSONS, value);
        return this;
    }

	public Integer getPerPersons() {
		return get(PER_PERSONS);
	}
    public TbTuan setSummaryImg(String value) {
        set(SUMMARY_IMG, value);
        return this;
    }

	public String getSummaryImg() {
		return get(SUMMARY_IMG);
	}
    public TbTuan setContent(String value) {
        set(CONTENT, value);
        return this;
    }

	public String getContent() {
		return get(CONTENT);
	}
    public TbTuan setStartTime(String value) {
        set(START_TIME, value);
        return this;
    }

	public String getStartTime() {
		return get(START_TIME);
	}
    public TbTuan setEndTime(String value) {
        set(END_TIME, value);
        return this;
    }

	public String getEndTime() {
		return get(END_TIME);
	}
    public TbTuan setStatus(String value) {
        set(STATUS, value);
        return this;
    }

	public String getStatus() {
		return get(STATUS);
	}
    public TbTuan setCreateTime(String value) {
        set(CREATE_TIME, value);
        return this;
    }

	public String getCreateTime() {
		return get(CREATE_TIME);
	}
    public TbTuan setCreateId(Integer value) {
        set(CREATE_ID, value);
        return this;
    }

	public Integer getCreateId() {
		return get(CREATE_ID);
	}
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[title:" + getTitle() + "]";
		log += "[sponsor:" + getSponsor() + "]";
		log += "[sponsorPhone:" + getSponsorPhone() + "]";
		log += "[maxPersons:" + getMaxPersons() + "]";
		log += "[perPersons:" + getPerPersons() + "]";
		log += "[summaryImg:" + getSummaryImg() + "]";
		log += "[content:" + getContent() + "]";
		log += "[startTime:" + getStartTime() + "]";
		log += "[endTime:" + getEndTime() + "]";
		log += "[status:" + getStatus() + "]";
		log += "[createTime:" + getCreateTime() + "]";
		log += "[createId:" + getCreateId() + "]";
		return log;
	}
}